using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using XFGameFramework;
using XFGameFramework.BuffSystem;

public class junkfood : BuffBase
{
    public int maxHpIncrease = -1;
    
    private PlayerModel playerModel => Owner as PlayerModel;
    public override void OnAdd()
    {
        base.OnAdd();

        if(playerModel== null)
        {
            throw new System.Exception("Owner is not a PlayerModel");

        }
       
    }
        

    
    public override void OnRemove()
    {
        if(playerModel== null)
        {
            throw new System.Exception("Owner is not a PlayerModel");

        }
        

        
        base.OnRemove();
        
    }
        
        
    
    
}
